<div class="box box-solid no-margin box-show">
    <div class="box-body">
        <h4>产品列表</h4>
        <div class="box-body table-responsive no-padding">
            <table class="table">
                <thead>
                <tr>
                    <th>SKU</th>
                    <th width="20%">产品名称</th>
                    <th>亚马逊SKU</th>
                    <th>ASIN</th>
                    <th>FNSKU</th>
                    <th>申请发货数量</th>
                    <th>备货数量</th>
                </tr>
                </thead>
                <tbody>
                @foreach($delivery->detail as $item)
                    <tr>
                        <td>{{ $item->sku->psku_code ?? '' }}</td>
                        <td>{{ $item->sku->psku_cn ?? '' }}</td>
                        <td>{{ $item->seller_sku }}</td>
                        <td>{{ $item->asin }}</td>
                        <td>{{ $item->fnsku }}</td>
                        <td>
{{--                            @if($delivery->status == 1)--}}
{{--                                <a class="grid-editable-apply_num" href="#" data-type="text" data-pk="{{ $item->id }}" data-url="{{ '/xqc/delivery/fba/'.$item->id }}" data-value="{{ $item->apply_num }}">{{ $item->apply_num }}</a>--}}
{{--                            @else--}}
                                {{ $item->apply_num }}
{{--                            @endif--}}
                        </td>
                        <td><span class="label label-{{ $item->apply_num > $item->ship_num ? 'danger' : 'info'}}">{{ $item->ship_num }}</span></td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>
    </div>
</div>
{{--<script language="JavaScript" type="text/javascript">--}}
{{--    $(function () {--}}
{{--        $('.grid-editable-apply_num').editable({"emptytext":"<i class=\"fa fa-pencil\"><\/i>","showbuttons":false,"mode":"inline","name":'deliveryDetail-apply_num',--}}
{{--            success: function(response, newValue) {--}}
{{--                $.pjax.reload("#fba-form");--}}
{{--                if (typeof response === 'object') {--}}
{{--                    if (response.status) {--}}
{{--                        toastr.success('提交成功 !');--}}
{{--                    } else {--}}
{{--                        swal(response.message, '', 'error');--}}
{{--                    }--}}
{{--                }--}}
{{--            }--}}
{{--        });--}}
{{--    });--}}
{{--</script>--}}
